<#import "/admin/_layer.html" as layout>
<@layout.header "订单详情">
</@layout.header>
<@layout.body>
    <section class="content">
        <div class="container-fluid">
            <div class="card card-default">
                <div class="col-12">
                    <form id="myForm" method="POST" action="/admin/order/doSavePrice">
                        <input type="hidden" name="orderId" value="${(order.id)!}">
                        <div class="card-body">
                            <div class="form-group">
                                <label for="roleName">原始金额</label>
                                <input type="text" class="form-control" placeholder="" readonly value="${(order.payAmount)!}">
                            </div>
                            <div class="form-group">
                                <label for="roleName">新价格</label>
                                <input type="text" name="newPrice" class="form-control" id="newPrice" placeholder="请输入需要修改的价格" value="">
                            </div>
                        </div>
                        <div class="card-footer">
                            <button type="submit" class="btn btn-primary">提交</button>
                        </div>
                    </form>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </section>

</@layout.body>
<@layout.script>
    <script type="text/javascript">
        $(function () {
            submitForm({
                newPrice: { required: true}
            }, {
                newPrice: { required: "请输入需要修改的价格"}
            })
        });
    </script>
</@layout.script>